﻿using UnityEngine;
using System.Collections;

public class CameraTank : CameraBase {

    public override void Tick() {
        base.Tick();

        bool succeed = false;
        Tank tank = GameScene.instance.tank;
        if (tank != null) {
            transform.position = tank.tankCameraPoint;
            transform.rotation = Quaternion.Euler(new Vector3(0.0f, tank.tankData.angleCurr));
            succeed = true;
        }

        if (succeed == false) {
            Reset();
        }
    }

    public override void Reset() {
        base.Reset();
    }
}
